import 'package:dio/dio.dart';
import 'package:package_model/url_data.dart';
import 'package:retrofit/http.dart';
import 'package:user_data_model/data/user_data.dart';

part 'user_model.g.dart';

/**
 *
 * @ProjectName:    user_data_model
 * @ClassName:      user_model
 * @Description:    dart类作用描述
 * @Author:         孙浩
 * @QQ:             243280864
 * @CreateDate:     2021/1/28 11:58 PM
 */
@RestApi(baseUrl: StaticUrl.BaseUrl)
abstract class UserModel {
  factory UserModel (Dio dio) = _UserModel;
  @GET(StaticUrl.UserInfo)
  Future<UserData> getUserInfoFromNet();
}
